package com.hackcloud.shardingjdbc;

import com.hackcloud.shardingjdbc.service.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableConfigurationProperties
@EnableAspectJAutoProxy(exposeProxy = true)
public class ShardingjbcApplication {

    public static void main(String[] args) {
        SpringApplication.run(ShardingjbcApplication.class, args);
    }

    @Bean
    public IdWorker idWorker() {
        return new IdWorker(1, 1, 1);
    }
}
